package com.itheima.day01.ZuoYe.ZuoYe3_4;

public class Car {
    private String tape;
    private String carNumber;

    public Car() {
    }

    public Car(String tape, String carNumber) {
        this.tape = tape;
        this.carNumber = carNumber;
    }

    public String getTape() {
        return tape;
    }

    public void setTape(String tape) {
        this.tape = tape;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public void start(){
        System.out.println("gogogo，出发喽~");
    }
    public void end(){
        System.out.println("车要停止了！");
    }

    @Override
    public String toString() {
        return "Car{" +
                "tape='" + tape + '\'' +
                ", carNumber='" + carNumber + '\'' +
                '}';
    }
}
